<%-- 
    Document   : error
    Created on : 2015-1-7, 19:19:16
    Author     : tengyu
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page isErrorPage="true" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>错误页面</title>
    </head>
    <body>
        出错了：</p> 错误信息: <%= exception.getMessage()%><br>
    Stack Trace is : <pre><font color="red"><%
        java.io.CharArrayWriter cw = new java.io.CharArrayWriter();
        java.io.PrintWriter pw = new java.io.PrintWriter(cw, true);
        exception.printStackTrace(pw);
        out.println(cw.toString());
        %>
</font></pre> 
</body>
</html>
